# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=smile
pkgver=2.9.5
pkgrel=0
pkgdesc="Emoji picker with custom tags support and localization"
url="https://mijorus.it/projects/smile"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3"
makedepends="meson python3 pango-dev glib-dev gtk4.0-dev desktop-file-utils"
source="$pkgname-$pkgver.tar.gz::https://github.com/mijorus/smile/archive/refs/tags/$pkgver.tar.gz"
subpackages="$pkgname-lang"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e897856ee9a3c970ea45d5405de4687693ee37d98cc40b66802f8d1196a6b162f3eddedd263327b5a87b2e8dd2e163f0f26324e6ca1dfaeaaf04ad92977bf803  smile-2.9.5.tar.gz
"
